﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CaseMasteRForm.aspx.cs"
    Inherits="Wei8808Cms.WebSite.admin.Case.CaseMasteRForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>成功案例管理</title>
    <link href="../Images/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/pagination.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery.pagination.js" type="text/javascript"></script>
    <script src="../js/function.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            //分页参数设置
            $("#Pagination").pagination(<%=pcount %>, {
            callback: pageselectCallback,
            prev_text: "« 上一页",
            next_text: "下一页 »",
            items_per_page:<%=pagesize %>,
		    num_display_entries:3,
		    current_page:<%=page %>,
		    num_edge_entries:2,
		   link_to:"?page=__id__"
           });
        });
        
        function pageselectCallback(page_id, jq) {
                //alert(page_id); 回调函数，进一步使用请参阅说明文档
        }
        
        $(function() {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function() {
			        $(this).addClass("tr_hover_col");
			    },
			    function() {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="AddCaseInfoForm.aspx">增加</a></span><b>您当前的位置： 成功案例管理 &gt;
            成功案例列表</b></div>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="6%" align="center">
                        选择
                    </th>
                    <th width="15%" align="left">
                        客户名称
                    </th>
                    <th width="20%" align="left">
                        备注
                    </th>
                    <th width="8%">
                        属性
                    </th>
                    <th width="8%" align="center">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" /><asp:Label ID="lb_id"
                        runat="server" Text='<%#Eval("CaseId")%>' Visible="false"></asp:Label>
                </td>
                <td align="left">
                    <a title="查看案例图片" target="_blank" href="<%#Eval("CaseImg") %>">
                        <%#Eval("CaseName")%></a>
                </td>
                <td align="left">
                    <%#Eval("CaseRemark")%>
                </td>
                <td>
                    <asp:ImageButton ID="ibtnRec" CommandName="ibtnRec" runat="server" ImageUrl='<%# Convert.ToInt32(Eval("IsRec")) == 1 ? "../Images/ico-2.png" : "../Images/ico-2_.png"%>'
                        ToolTip='<%# Convert.ToInt32(Eval("IsRec")) == 1 ? "取消推荐" : "设置推荐"%>' />
                </td>
                <td align="center">
                    <span><a href="EditNewsInfoForm.aspx?id=<%#Eval("CaseId") %>">编辑</a></span>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="spClear">
    </div>
    <div style="line-height: 30px; height: 30px;">
        <div id="Pagination" class="right flickr">
        </div>
        <div class="left">
            <span class="btn_all" onclick="checkAll(this);">全选</span> <span class="btn_bg">
                <asp:LinkButton ID="lbtnDel" runat="server" OnClientClick="return confirm( '确定要删除这些记录吗？ ');"
                    OnClick="lbtnDel_Click">删 除</asp:LinkButton>
            </span>
        </div>
    </div>
    </form>
</body>
</html>
